package com.example.demo.controller;

import javax.annotation.Resource;
/*
 * 测试用
 */

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.example.demo.service.TestService;

import lombok.Data;
/*
 * 测试用类
 */
@Controller
@Data
@RequestMapping("/qq")
public class TestController {
	@Resource
	private TestService testService;
	@RequestMapping("/ww")
	@ResponseBody
	public void get() {
		System.out.println("陈俊名的测试");
		testService.getInf();
		
	}
	@RequestMapping("/find")
	public ModelAndView find() {
		System.out.println("影院管理");
		ModelAndView modelAndView=new ModelAndView();
		modelAndView.setViewName("moivesystem.html");																																	
		return modelAndView;
	}
	@RequestMapping("/find1")
	public ModelAndView find1() {
		System.out.println("影片上传");
		ModelAndView modelAndView=new ModelAndView();
		modelAndView.setViewName("uploadvideo.html");																																	
		return modelAndView;
	}
	
}
